package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Exam;
import cn.wolfcode.ssm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public interface ExamMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Exam record);

    Exam selectByPrimaryKey(Long id);

    List<Exam> selectAll();

    int updateByPrimaryKey(Exam record);

    List<Exam> selectForList(QueryObject qo);

    ArrayList<Long> selectIdByType(int i);

    void insertExamQuestion(@Param("setAll") Set<Long> setAll, @Param("id") Long id, @Param("score") Integer score);


}